package com.ruoyi.project.ping.service;

import com.ruoyi.project.mydo.detail.domain.MydoJobDetail;
import com.ruoyi.project.mydo.detail.mapper.MydoJobDetailMapper;
import com.ruoyi.project.mydo.mydojob.domain.MydoJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PingServiceImpl implements PingService{

    @Autowired
    MydoJobDetailMapper mydoJobDetailMapper;

    @Override
    public List<MydoJobDetail> selectJob(MydoJob mydoJob) {
        mydoJob.setStatus("3");
        List<MydoJobDetail> jobDetails = mydoJobDetailMapper.selectMydoJob(mydoJob);
        return jobDetails;
    }

    @Override
    public List<MydoJobDetail> selectJobOut(MydoJob mydoJob) {
        mydoJob.setStatus("3");
        List<MydoJobDetail> jobDetails = mydoJobDetailMapper.selectMydoJobOut(mydoJob);
        return jobDetails;
    }
}
